# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

inherit vala subversion autotools

DESCRIPTION="An Application Markup Language for GTK+ and Vala"
HOMEPAGE="http://code.google.com/p/gtkaml/"

ESVN_REPO_URI="http://gtkaml.googlecode.com/svn/trunk/"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS=""
IUSE="test"

RDEPEND="dev-libs/glib:2
	x11-libs/gtk+:2
	dev-libs/libxml2
	dev-lang/vala:0.14"
DEPEND="${RDEPEND}"

DOCS="AUTHORS NEWS README TODO"

VALA_REQUIRED_VERSION="0.14"

src_prepare() {
	eautoreconf
}

src_configure() {
	econf $(use_enable test tests)
}

src_install() {
	DESTDIR="${D}" emake install
}
